var e = require;
var t = module;
var o = exports;
Object.defineProperty(o, "__esModule", {value: !0});
var n = e("GlobalParams"),
    a = e("Loader"),
    i = e("MiniGameSDK"),
    r = cc._decorator,
    s = r.ccclass,
    l =
        (r.property,
        (function (e) {
            function t() {
                return (null !== e && e.apply(this, arguments)) || this;
            }
            return (
                __extends(t, e),
                (t.prototype.showPrivacyView = function () {
                    var e = this;
                    a.default.loadBundleRes(
                        "SceneMain",
                        "privacy_view_ui",
                        function (t) {
                            var o = cc.instantiate(t);
                            e.node.addChild(cc.instantiate(o));
                        },
                        cc.Prefab
                    );
                }),
                (t.prototype.surePrivacy = function () {
                    (n.GlobalParams.showPrivacy.value = !0), cc.director.loadScene("Main");
                }),
                (t.prototype.closePrivacy = function () {
                    i.default.exitApplication();
                }),
                (t.prototype.closeThisView = function () {
                    this.node.destroy();
                }),
                __decorate([s], t)
            );
        })(cc.Component));
o.default = l;
